package com.roselism.mobilesafe.library;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;

import com.roselism.mobilesafe.R;

/**
 * Divider
 * 组件之间的 分隔符
 * <p/>
 * Created by simon on 2016/4/28.
 */
public class Divider extends ImageView {

    /**
     * 分隔符对象
     */
    ImageView mDivider;

    int mHeight;

    int mWidth;

    public Divider(Context context) {
        super(context);
        initView();
    }

    public Divider(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public Divider(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    /**
     * 初始化分隔符对象
     */
    void initView() {

        // 装填一个对象
        mDivider = (ImageView) View.inflate(getContext(), R.layout.divider, null);
    }
}
